#define _CRT_SECURE_NO_WARNINGS 1
#include<cstdio>

int main()
{
    double A, B, C;
    scanf("%lf%lf%lf", &A, &B, &C);
    if (A + B > C && A + C > B && B + C > A)
    {
        printf("Perimetro = %.1lf", A + B + C);
    }
    else
    {
        printf("Area = %.1lf", (A + B) * C / 2.0);
    }
    return 0;
}